﻿/**
 *
 * @title: Basic MVC Framework, Model Class
 * @author: 
 * @license: 
 * @updated: 29/07/2010
 *
 * @version	1.0 
 */

package com.mediagallary.model{
	
	import flash.events.EventDispatcher;
	import flash.events.Event;
	
	import com.mediagallary.model.*;
	import com.mediagallary.vo.GallaryVO;

	/**
	 * Basic Model class in Model/View/Controller triad.
	 */
	public class GallaryModel extends Model {	
	
		//public static const UPDATE:String = "modelUpdated";
		
		public function GallaryModel()  {
			// empty
		}
		
		override protected function updateData():void
		{
			trace("updateData");
			
		}
		
		/**
		 * This method will cause an update event and object
		 * to be passed up to the view. Using CustomEvent allows
		 * a data object to be passed along with the event
		 */
		/*public function onUpdate(ob:Object):void {
			var e:CustomEvent = new CustomEvent(AbstractModel.UPDATE, true, false, ob);
			dispatchEvent(e);
		}*/
	}
}